<div class="w100p filter">
    <?php if($this->isSuperAdmin){?>
    <div class="float_right">
        <div class="float_left button_leftb m10r">
            <div class="button_rightb"><a href="<?php echo $this->url(array("action" => "index")); ?>">
                    <?php echo $this->translate->_("Back to user list"); ?>
                </a></div>
        </div>
        <div class="cl"></div>
    </div>
    <?php }?>
    <div class="cb"></div>
</div>
<div id="main">
    <div class="w950 mc bg_table po p15b">
        <div class="top_left"></div>
        <div class="top_right"></div>
        <div class="bottom_left"></div>
        <div class="bottom_right"></div>
        <h3 class="p15t p15l p15b bg_bot"><b><?php echo $this->translate->_("Edit User"); ?></b></h3>
        <div class="w920 mc p15t">
            <div class="w445 float_left">
                <form id="data-form" onsubmit="return batteryObj.validateForm('data-form');" method="post">
                    <br class="clear" />
                    <label class="lbl2">User name:<em> *</em></label>
                    <input name="data[nickName]" value="<?php echo $this->data['nickName']; ?>" class="txt2 required" type="text" /><br class="clear" />
                    <label class="lbl2">Full name:<em> *</em></label>
                    <input name="data[name]" value="<?php echo $this->data['name']; ?>" class="txt2" type="text" /><br class="clear" />
                    <label class="lbl2">Email: <em> *</em></label>
                    <input name="data[email]" value="<?php echo $this->data['email']; ?>" class="txt2 required email" type="text" /><br class="clear" />
                    <label class="lbl2">Password: <em> *</em></label>
                    <input name="data[password]" id="password" value="" class="txt2" type="password" autocomplete="off" /><br class="clear" />
                    <label class="lbl2">Retype password: <em> *</em></label>
                    <input name="data[retypePassword]" id="retypepassword" value="" class="txt2" type="password" /><br class="clear" />
                    <label class="lbl2">Group:</label>
                    <select <?php if (!$this->isSuperAdmin) { ?>disabled<?php }else{ echo 'name="data[groupID]"';} ?> class="txt2">
                        <?php foreach ($this->groupList as $g) { ?>
                            <option value="<?php echo $g['GroupID']; ?>" <?php
                        if ($this->data['GroupID'] == $g['GroupID']) {
                            echo " selected";
                        }
                            ?>><?php echo $g['GroupName']; ?></option>
                                <?php } ?>
                    </select><br class="clear" />
                    <label class="lbl2">Is active: </label>
                    <select <?php if (!$this->isSuperAdmin) { ?>disabled<?php }else{ echo 'name="data[IsActive]"';} ?> class="txt2" >
                        <option value="0" <?php
                        if ($this->data['isActive'] == "0") {
                            echo " selected";
                        }
                        ?>>No</option>
                        <option value="1" <?php
                                if ($this->data['isActive'] == "1") {
                                    echo " selected";
                                }
                        ?>>Yes</option>
                    </select>
                    <br class="clear" /><br/>
                    <label class="lbl2">&nbsp;</label>
                    <div class="float_left button_leftb m3r">
                        <div class="button_rightb"><a href="#"  onclick="if(batteryObj.validateForm('data-form')) document.forms[0].submit();"><?php echo $this->translate->_("Save"); ?></a></div>
                    </div><div class="float_left button_leftb">
                        <div class="button_rightb"><a href="<?php echo $this->url(array("action" => "index")); ?>"><?php echo $this->translate->_("Cancel"); ?></a></div>
                    </div>
                </form>
            </div>  </div>
        <div class="cb"></div>
    </div>
</div>
